package com.example.auth.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * 
 * @TableName user_ext
 */
@TableName(value ="user_ext")
public class UserExt {
    /**
     * 
     */
    @TableId
    private String uuid;

    /**
     * 
     */
    private String userText;

    /**
     * 
     */
    public String getUuid() {
        return uuid;
    }

    /**
     * 
     */
    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    /**
     * 
     */
    public String getUserText() {
        return userText;
    }

    /**
     * 
     */
    public void setUserText(String userText) {
        this.userText = userText;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        UserExt other = (UserExt) that;
        return (this.getUuid() == null ? other.getUuid() == null : this.getUuid().equals(other.getUuid()))
            && (this.getUserText() == null ? other.getUserText() == null : this.getUserText().equals(other.getUserText()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getUuid() == null) ? 0 : getUuid().hashCode());
        result = prime * result + ((getUserText() == null) ? 0 : getUserText().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", uuid=").append(uuid);
        sb.append(", userText=").append(userText);
        sb.append("]");
        return sb.toString();
    }
}